/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jdh;

/**
 *
 * @author tale
 */
public class UserDataModel extends DataModel {

    final static String select =
            "SELECT * FROM %s";
    final static String update =
            "UPDATE %s SET {COLUMN} = '{NEW}' ";
    final static String insert =
            "INSERT INTO %s(NAME, PASSWORD) VALUES('NO NAME', '000000')";
    final static String delete =
            "DELETE FROM %s ";

    public UserDataModel(String table){
        super(String.format(select, table), String.format(update, table),
                String.format(insert, table), String.format(delete, table));
    }
    
}
